﻿<UserControl x:Class="WorkflowApplicationControls.CenterPane"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" >
    <Grid>
        <TabControl Name="mainTabCtrl" AutomationProperties.AutomationId="mainTabCtrl" IsSynchronizedWithCurrentItem="True"
                        Style="{DynamicResource TabControlStyle2}" d:LayoutOverrides="Height"
                    SelectedIndex="{Binding Path=SelectedTabIndex}">                    
            <TabItem Header="Details" Name="detailsTab" AutomationProperties.AutomationId="detailsTab" 
                         Style="{DynamicResource InsideTabItemStyle}">
                <ContentControl Content="{Binding Path=RunControl}"/>
            </TabItem>
            <TabItem Header="Execution" Name="executionTab" AutomationProperties.AutomationId="executionTab" 
                         Style="{DynamicResource InsideTabItemStyle}">
                <ContentControl Content="{Binding Path=OutputControl}"/>
            </TabItem>
        </TabControl>
    </Grid>
</UserControl>
